package cn.hzc.fortess.core.common.annotion;

import org.apache.shiro.authz.annotation.Logical;

import java.lang.annotation.*;

/**
 * 权限注解 用于检查权限 规定访问权限
 *
 * @example @RequestPermission({"sam:dept:list","sam:dept:delete'})
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface RequestPermission {

    String[] value() default {};

    //检查类型，默认使用权限标识
    CheckType checkType() default CheckType.AUTH_IDENT;

    Logical logical() default Logical.AND;
}
